package com.star.test.entity;

// 方形
public class Square extends Shape implements Area {
    public Square(double s) {
        super(s);
    }

    @Override
    public double getArea() {
        double circumference = super.getS();
        double edge = circumference / 4;
        return edge * edge;
    }

    

}